<!--
 * @Descripttion: 文本输入框
 * @version: V1.0
 * @Author: GW
 * @Date: 2021-09-11 08:40:23
 * @LastEditors: GW
 * @LastEditTime: 2021-09-25 17:14:55
-->
<template>
    <section class="edit-wrapper">
        <p>文本内容</p>
        <ueditor :customstyle="style" class="ueditor-operation" :content.sync="data.text"></ueditor>
        <!-- <a-textarea class="onresize" v-model="data.text" maxLength="200" cols="10" rows="5"></a-textarea> -->
    </section>
</template>

<script>
import ueditor from '@/components/Ueditor/index';
export default {
    props: {
        data: {
            type: Object,
            default: {}
        },
    },
    components: {
        ueditor
    },
    data () {
        return {
            style: [{
                tag: 'img',
                name: 'imgq',
                label: 'ddd',
                style: 'width:100px'
            }]
        }
    }
}
</script>

<style lang="less" scoped>
    .edit-wrapper {
        padding: 10px 10px 28px;
        .onresize {
            resize: none;
        }
    }
</style>